package ai.people.platform.system.mapper;

import ai.people.netmon.framework.domain.system.entity.NmSystemMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 系统菜单映射器
 *
 * @author yuanqinglong
 * @date 2022/3/4 15:49
 */
@Mapper
public interface SystemMenuMapper extends BaseMapper<NmSystemMenu> {


    /**
     * 通过用户id查询菜单
     *
     * @param userId 用户id
     * @return {@link NmSystemMenu}
     */
    List<NmSystemMenu> getMenuByUserId(Long userId);

}
